package edu.hwadee.BEIS.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * VocationalTraining entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "vocational_training", catalog = "beis")

public class VocationalTraining implements java.io.Serializable {

	// Fields

	private Integer vocationalTrainingId;
	private SchoolBasicInfor schoolBasic;
	private Integer trainingStaffCount;
	private Integer openSchoolDay;
	private Integer serviceDay;
	private Integer trainingResidentCount;
	private Integer trainingDoubleTypeTeacherCount;
	private Integer farmerTransferCount;
	private Integer trainingJuniorHighGraduateCount;
	private Integer trainingCollageGraduateCount;
	private Integer trainingDisabledCount;
	private Integer trainingUnemployeeCount;
	private Integer trainingFarmerCount;
	private Integer trainingRetiredSoldierCount;
	private Short countyAuditStatus;
	private Short cityAuditStatus;
	private Timestamp modifyTime;

	// Constructors

	/** default constructor */
	public VocationalTraining() {
	}

	/** full constructor */
	public VocationalTraining(SchoolBasicInfor schoolBasic, Integer trainingStaffCount, Integer openSchoolDay,
			Integer serviceDay, Integer trainingResidentCount, Integer trainingDoubleTypeTeacherCount,
			Integer farmerTransferCount, Integer trainingJuniorHighGraduateCount, Integer trainingCollageGraduateCount,
			Integer trainingDisabledCount, Integer trainingUnemployeeCount, Integer trainingFarmerCount,
			Integer trainingRetiredSoldierCount, Short countyAuditStatus, Short cityAuditStatus, Timestamp modifyTime) {
		this.schoolBasic = schoolBasic;
		this.trainingStaffCount = trainingStaffCount;
		this.openSchoolDay = openSchoolDay;
		this.serviceDay = serviceDay;
		this.trainingResidentCount = trainingResidentCount;
		this.trainingDoubleTypeTeacherCount = trainingDoubleTypeTeacherCount;
		this.farmerTransferCount = farmerTransferCount;
		this.trainingJuniorHighGraduateCount = trainingJuniorHighGraduateCount;
		this.trainingCollageGraduateCount = trainingCollageGraduateCount;
		this.trainingDisabledCount = trainingDisabledCount;
		this.trainingUnemployeeCount = trainingUnemployeeCount;
		this.trainingFarmerCount = trainingFarmerCount;
		this.trainingRetiredSoldierCount = trainingRetiredSoldierCount;
		this.countyAuditStatus = countyAuditStatus;
		this.cityAuditStatus = cityAuditStatus;
		this.modifyTime = modifyTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")

	@Column(name = "vocational_training_id", unique = true, nullable = false)

	public Integer getVocationalTrainingId() {
		return this.vocationalTrainingId;
	}

	public void setVocationalTrainingId(Integer vocationalTrainingId) {
		this.vocationalTrainingId = vocationalTrainingId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "school_id", nullable = false)

	public SchoolBasicInfor getSchoolBasic() {
		return this.schoolBasic;
	}

	public void setSchoolBasic(SchoolBasicInfor schoolBasic) {
		this.schoolBasic = schoolBasic;
	}

	@Column(name = "training_staff_count", nullable = false)

	public Integer getTrainingStaffCount() {
		return this.trainingStaffCount;
	}

	public void setTrainingStaffCount(Integer trainingStaffCount) {
		this.trainingStaffCount = trainingStaffCount;
	}

	@Column(name = "openschool_day", nullable = false)

	public Integer getOpenSchoolDay() {
		return this.openSchoolDay;
	}

	public void setOpenSchoolDay(Integer openSchoolDay) {
		this.openSchoolDay = openSchoolDay;
	}

	@Column(name = "service_day", nullable = false)

	public Integer getServiceDay() {
		return this.serviceDay;
	}

	public void setServiceDay(Integer serviceDay) {
		this.serviceDay = serviceDay;
	}

	@Column(name = "training_resident_count", nullable = false)

	public Integer getTrainingResidentCount() {
		return this.trainingResidentCount;
	}

	public void setTrainingResidentCount(Integer trainingResidentCount) {
		this.trainingResidentCount = trainingResidentCount;
	}

	@Column(name = "training_doubletype_teacher_count", nullable = false)

	public Integer getTrainingDoubleTypeTeacherCount() {
		return this.trainingDoubleTypeTeacherCount;
	}

	public void setTrainingDoubleTypeTeacherCount(Integer trainingDoubleTypeTeacherCount) {
		this.trainingDoubleTypeTeacherCount = trainingDoubleTypeTeacherCount;
	}

	@Column(name = "farmer_transfer_count", nullable = false)

	public Integer getFarmerTransferCount() {
		return this.farmerTransferCount;
	}

	public void setFarmerTransferCount(Integer farmerTransferCount) {
		this.farmerTransferCount = farmerTransferCount;
	}

	@Column(name = "training_juniorhighgraduate_count", nullable = false)

	public Integer getTrainingJuniorHighGraduateCount() {
		return this.trainingJuniorHighGraduateCount;
	}

	public void setTrainingJuniorHighGraduateCount(Integer trainingJuniorHighGraduateCount) {
		this.trainingJuniorHighGraduateCount = trainingJuniorHighGraduateCount;
	}

	@Column(name = "training_collagegraduate_count", nullable = false)

	public Integer getTrainingCollageGraduateCount() {
		return this.trainingCollageGraduateCount;
	}

	public void setTrainingCollageGraduateCount(Integer trainingCollageGraduateCount) {
		this.trainingCollageGraduateCount = trainingCollageGraduateCount;
	}

	@Column(name = "training_disabled_count", nullable = false)

	public Integer getTrainingDisabledCount() {
		return this.trainingDisabledCount;
	}

	public void setTrainingDisabledCount(Integer trainingDisabledCount) {
		this.trainingDisabledCount = trainingDisabledCount;
	}

	@Column(name = "training_unemployee_count", nullable = false)

	public Integer getTrainingUnemployeeCount() {
		return this.trainingUnemployeeCount;
	}

	public void setTrainingUnemployeeCount(Integer trainingUnemployeeCount) {
		this.trainingUnemployeeCount = trainingUnemployeeCount;
	}

	@Column(name = "training_farmer_count", nullable = false)

	public Integer getTrainingFarmerCount() {
		return this.trainingFarmerCount;
	}

	public void setTrainingFarmerCount(Integer trainingFarmerCount) {
		this.trainingFarmerCount = trainingFarmerCount;
	}

	@Column(name = "training_retiredsoldier_count", nullable = false)

	public Integer getTrainingRetiredSoldierCount() {
		return this.trainingRetiredSoldierCount;
	}

	public void setTrainingRetiredSoldierCount(Integer trainingRetiredSoldierCount) {
		this.trainingRetiredSoldierCount = trainingRetiredSoldierCount;
	}

	@Column(name = "county_auditstatus", nullable = false)

	public Short getCountyAuditStatus() {
		return this.countyAuditStatus;
	}

	public void setCountyAuditStatus(Short countyAuditStatus) {
		this.countyAuditStatus = countyAuditStatus;
	}

	@Column(name = "city_auditstatus", nullable = false)

	public Short getCityAuditStatus() {
		return this.cityAuditStatus;
	}

	public void setCityAuditStatus(Short cityAuditStatus) {
		this.cityAuditStatus = cityAuditStatus;
	}

	@Column(name = "modify_time", nullable = false, length = 19)

	public Timestamp getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}

}